/*
 * @Date: 2022-03-24 18:09:12
 * @LastEditors: sailornpg
 * @LastEditTime: 2022-03-29 17:13:24
 * @FilePath: \vue3Components\src\main.ts
 * @Description: 入口文件
 */
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
//引入所有图标
import * as Icons from "@element-plus/icons-vue";
import { toLine } from "./utils";
import "./styles/ele.css";
import "./mock";
const app = createApp(App);
//注册图标
for (let i in Icons) {
  // 注册全部组件
  app.component(`el-icon-${toLine(i)}`, (Icons as any)[i]);
}
app.use(router);
app.use(ElementPlus);
app.mount("#app");
